body, html {
  margin: 0;
  padding: 0;
  background-color: white;
}

.logo {
  margin-right: auto; 
}

.logo a {
  text-decoration: none;
  font-size: 1.5rem; 
  color: #555; 
}

#inputMenu {
  display: none;
}

.labelMenu{
  position: fixed;
  top: .5rem;
  right: .5rem;
  display: flex;
  justify-content: center;
  align-items: center; 
  width: 2.2rem;
  height: 2.2rem; 
  font-size: 1.5rem;
  color: #555;
  border: 1px solid white;
  border-radius: 4px;
  padding: .2rem .4rem;
  background-color: pink;
  z-index: 9;
  cursor: pointer;
}

.topmenu {
  position: fixed;
  top: 3rem;
  right: -46rem;
  width: 75%;
  display: flex;
  flex-direction: column;
  background-color: pink;
  transition: right .5s ease-out;
  z-index: 8;
}

.topmenu a {
  display: block;
  padding: .5rem 3rem;
  color: #555;
  text-decoration: none;
  text-align: center;
  border-bottom: 1px solid #ffffff30; 
}

#inputMenu:checked ~ .topmenu {
  right: 0;
  display: flex;
}


@media screen and (min-width:48rem){
  .menubar {
    display: flex; 
    align-items: center; 
    background-color: pink;
    padding-left: 1rem;
    margin: 0;
    position: relative;
    width: 100%;
  }
  
  .topmenu {
    position: relative;
    top: 0;
    right: 0;
    width: auto;
    display: flex; 
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    background-color: transparent;
    height: auto;
    transition: none; 
  }

  
  .topmenu a {
    text-decoration: none;
    color: #555;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-bottom: none;
    }

  .labelMenu {
    display: none;
  }
}

@media screen and (max-width: 48rem) {
  .logo {
    display: none; 
  }
}